<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('user/index')}">代理商</a></li>
			<li><a href="{:url('user/add')}">代理商添加</a></li>
			<li class="active"><a href="#">激活码</a></li>
		</ul>
		<form class="well form-inline margin-top-20" method="post" action="{:url('User/dekeys')}">
			<input type="hidden" name="id" id="id" value="{$id}"/>
			激活码:
			<input type="text" class="form-control" name="key_code" style="width: 240px;" value="{:input('request.key_code/s','')}" placeholder="推荐码">
			<input type="submit" class="btn btn-primary" value="搜索" />
			<a class="btn btn-danger" href="{:url('User/dekeys',array('id'=>$id))}">清空</a>
		</form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="50">ID</th>
					<th>平台名称</th>
					<th>激活码</th>
					<th>状态</th>
					<th>使用者电话</th>
				</tr>
			</thead>
			<tbody>
			<volist name="rest" id="vo" key="a">
				<tr>
					<td>{$vo.id}</td>
					<td>{$vo.brand_name}</td>
					<td>{$vo.key_code}</td>
					<td>
						<if condition="$vo.status == 1">
							已使用
						<elseif condition="$vo.status == 2" />
							未使用
						</if>
					</td>
					<td>{$vo.make_mobile}</td>
				</tr>
			</volist>
			</tbody>
		</table>
		<div class="pagination">{$page|default=''}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>